package com.moter.demo01.io.in_outputstream.filterstream.bufferedIstream;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;

public class BufferedInputStreamDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("src\\main\\java\\com\\moter\\demo01\\io\\in_outputstream\\filterstream\\bufferedIstream\\buffer.txt");
        BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream,5);
        byte[] b = new byte[1024];
        bufferedInputStream.read(b);
        System.out.println(new String(b));
        bufferedInputStream.close();
    }
}
